import request from '@/utils/request'

// 查询派单记录列表
export function listUserOrderDispatch(query) {
  return request({
    url: '/system/userOrderDispatch/list',
    method: 'get',
    params: query
  })
}

// 查询派单记录详细
export function getUserOrderDispatch(id) {
  return request({
    url: '/system/userOrderDispatch/' + id,
    method: 'get'
  })
}

// 新增派单记录
export function addUserOrderDispatch(data) {
  return request({
    url: '/system/userOrderDispatch',
    method: 'post',
    data: data
  })
}

// 修改派单记录
export function updateUserOrderDispatch(data) {
  return request({
    url: '/system/userOrderDispatch',
    method: 'put',
    data: data
  })
}

// 删除派单记录
export function delUserOrderDispatch(id) {
  return request({
    url: '/system/userOrderDispatch/' + id,
    method: 'delete'
  })
}

// 导出派单记录
export function exportUserOrderDispatch(query) {
  return request({
    url: '/system/userOrderDispatch/export',
    method: 'get',
    params: query
  })
}